/****** Object:  Table [dbo].[booking]    ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[booking](
	[bookingId] [int] IDENTITY(1,1) NOT NULL,
	[tripCode] [nchar](10) NULL,
	[adultNo] [int] NULL,
	[childNo] [int] NULL,
	[status] [nchar](10) NULL,
	[totalTicketFare] [float] NULL,
	[paymentDue] [date] NULL,
	[contactName] [nchar](50) NULL,
	[contactNo] [nchar](10) NULL,
	[contactEmailAddress] [nchar](30) NULL,
 CONSTRAINT [PK_booking] PRIMARY KEY CLUSTERED 
(
	[bookingId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[booking]  WITH CHECK ADD  CONSTRAINT [FK_booking_trip] FOREIGN KEY([tripCode])
REFERENCES [dbo].[trip] ([tripCode])
GO

ALTER TABLE [dbo].[booking] CHECK CONSTRAINT [FK_booking_trip]
GO

